package User;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = AppConfig.class)
public class UserTest {
    
    @Autowired
    private User user;
    
    @Test
    public void testUserProperties() {
        assertNotNull(user);
        assertEquals("张三", user.getUsername());
        assertEquals("123456", user.getPassword());
        System.out.println("User对象: " + user);
    }
}